import {requestDel, requestGet, requestPost} from "./request";

export async function createSection(section) {
  return await requestPost('/section/', section)
}

export async function getSectionList(channelId) {
  return await requestGet('/section/', {channel: channelId, page: 1, page_size: 2000})
}

export async function delSection(id) {
  return await requestDel(`/section/${id}`)
}
